//package com.sunye.rocketmq;
//
//import lombok.extern.slf4j.Slf4j;
//import org.apache.rocketmq.common.message.MessageExt;
//import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
//import org.apache.rocketmq.spring.core.RocketMQListener;
//import org.springframework.stereotype.Component;
//
//import java.nio.charset.StandardCharsets;
//
///***
// * 和一般的消
// * 息消费类似
// */
//@Slf4j
//@Component
//@RocketMQMessageListener(consumerGroup = "tx_consumer",topic = "order_topic")
//public class OrderListener implements RocketMQListener<MessageExt> {
//
//    @Override
//    public void onMessage(MessageExt message) {
//        String jsonString = new String((byte[]) message.getBody(), StandardCharsets.UTF_8);
//
//        log.info("===============消费者进行消息的消费==============");
//        log.info(">>>> tags={} <<<<",message.getTags());
//        log.info(">>>> message={} <<<<",jsonString);
//    }
//}
//
